package com.hxkj.service;

import com.hxkj.domain.po.Notice;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

/**
 *公告Service
 * <p>
 * Created by chenfangzhou on 2018/6/6.
 */
public interface NoticeService {

    /**
     * 保存公告信息
     *
     * @param notice
     * @return
     * @throws Exception
     */
    ResultMessageStruct saveNotice(Notice notice) throws Exception;


    /**
     * 获取所有公告
     *
     * @return
     * @throws Exception
     */
    ResultPageStruct<Notice> getNoticeList(Notice notice, PageTo pageParam) throws Exception;

    /**
     * 获取单个公告
     *
     * @return
     * @throws Exception
     */
    ResultDataStruct<Notice> getNotice(Notice notice) throws Exception;


    /**
     * 删除公告
     * @param notice
     */
    ResultMessageStruct deleteNotice(Notice notice) throws Exception;

    /**
     * 修改公告
     * @param notice
     */
    ResultMessageStruct updateNotice(Notice notice) throws Exception;




}
